+Thu Jun 3 21:17:29 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentry.c (gtk_entry_completion_timeout): Calculate the
+ length of the entry contents in characters, not in bytes.
+
+ * gtk/gtkentry.c (paste_received): Don't pop up the completion
+ window on paste, noticed by Anders Carlsson.
+
Thu Jun 3 20:56:19 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_class_init): Fix the allowed
+Thu Jun 3 21:17:29 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentry.c (gtk_entry_completion_timeout): Calculate the
+ length of the entry contents in characters, not in bytes.
+
+ * gtk/gtkentry.c (paste_received): Don't pop up the completion
+ window on paste, noticed by Anders Carlsson.
+
Thu Jun 3 20:56:19 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_class_init): Fix the allowed
+Thu Jun 3 21:17:29 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentry.c (gtk_entry_completion_timeout): Calculate the
+ length of the entry contents in characters, not in bytes.
+
+ * gtk/gtkentry.c (paste_received): Don't pop up the completion
+ window on paste, noticed by Anders Carlsson.
+
Thu Jun 3 20:56:19 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_class_init): Fix the allowed
+Thu Jun 3 21:17:29 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkentry.c (gtk_entry_completion_timeout): Calculate the
+ length of the entry contents in characters, not in bytes.
+
+ * gtk/gtkentry.c (paste_received): Don't pop up the completion
+ window on paste, noticed by Anders Carlsson.
+
Thu Jun 3 20:56:19 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_class_init): Fix the allowed
if (text)
{
gint pos, start, end;
+ GtkEntryCompletion *completion = gtk_entry_get_completion (entry);
+
+ if (completion)
+ {
+ g_signal_handler_block (entry, completion->priv->changed_id);
+ if (GTK_WIDGET_MAPPED (completion->priv->popup_window))
+ _gtk_entry_completion_popdown (completion);
+ }
if (gtk_editable_get_selection_bounds (editable, &start, &end))
gtk_editable_delete_text (editable, start, end);
pos = entry->current_pos;
gtk_editable_insert_text (editable, text, -1, &pos);
gtk_editable_set_position (editable, pos);
+
+ if (completion)
+ g_signal_handler_unblock (entry, completion->priv->changed_id);
}
g_object_unref (entry);
completion->priv->completion_timeout = 0;
- if (strlen (gtk_entry_get_text (GTK_ENTRY (completion->priv->entry)))
+ if (g_utf8_strlen (gtk_entry_get_text (GTK_ENTRY (completion->priv->entry)), -1)
>= completion->priv->minimum_key_length)
{
gint matches;